package com.ks.app.admin.hibernate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * KsProvinceSmsc entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "KS_PROVINCE_SMSC")
public class KsProvinceSmsc implements java.io.Serializable {

	// Fields

	private static final long serialVersionUID = 7385954701328963021L;
	private long id;//主键ID
	private String smsc;//smsc编号
	private String PId;//省份ID
	private String provincename;//省份名称

	// Constructors

	/** default constructor */
	public KsProvinceSmsc() {
	}

	/** minimal constructor */
	public KsProvinceSmsc(long id) {
		this.id = id;
	}

	/** full constructor */
	public KsProvinceSmsc(long id, String smsc, String PId,
			String provincename) {
		this.id = id;
		this.smsc = smsc;
		this.PId = PId;
		this.provincename = provincename;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 22, scale = 0)
	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name = "SMSC")
	public String getSmsc() {
		return this.smsc;
	}

	public void setSmsc(String smsc) {
		this.smsc = smsc;
	}

	@Column(name = "P_ID")
	public String getPId() {
		return this.PId;
	}

	public void setPId(String PId) {
		this.PId = PId;
	}

	@Column(name = "PROVINCENAME")
	public String getProvincename() {
		return this.provincename;
	}

	public void setProvincename(String provincename) {
		this.provincename = provincename;
	}

}